Builder

public final class Builder

A builder of KeyModifiers.

Builders are created by invoking newBuilder. Each of the setter methods modifies the state of the builder and returns the same instance. Builders are not thread-safe and should not be used concurrently from multiple threads without external synchronization.

Functions

Link copied to clipboard
public KeyModifiers.Builder altDown(boolean flag)
Sets the flag indicating whether the Alt is pressed.
Link copied to clipboard
public KeyModifiers.Builder altGraphDown(boolean flag)
Sets the flag indicating whether the AltGraph is pressed.
Link copied to clipboard
Returns a new KeyModifiers instance built from the current state of this builder.
Link copied to clipboard
public KeyModifiers.Builder controlDown(boolean flag)
Sets the flag indicating whether the Control is pressed.
Link copied to clipboard
public KeyModifiers.Builder metaDown(boolean flag)
Sets the flag indicating whether the Meta is pressed.
Link copied to clipboard
public KeyModifiers.Builder shiftDown(boolean flag)
Sets the flag indicating whether the Shift is pressed.